﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("activityService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/activity/gets", params);
            },
            get: function (params) {
                return httpService.get("/admin/activity/get", params);
            },
            "update": function (params) {
                return httpService.upload("/admin/activity/update", params);
            },
            "add": function (params) {
                return httpService.upload("/admin/activity/add", params);
            },
            "updateStatus": function (id, status) {
                return httpService.post("/admin/activity/updateStatus", { id: id, status: status });
            },
            "updateIndexShow": function (id, isShow) {
                return httpService.post("/admin/activity/UpdateIndexShow", { id: id, isShow: isShow });
            }
        }
        return methods;
    });
});